
package com.be.beadmin.device.repository;

import com.be.beadmin.device.entity.SpareInfo;
import com.be.beadmin.project.entity.Info;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import java.util.Date;


import java.util.Date;

/**
* @author zty
* @date 2023-07-30
**/
public interface SpareInfoRepository extends JpaRepository<SpareInfo, String>, JpaSpecificationExecutor<SpareInfo> {

    SpareInfo findSpareInfoByIdAndDelete(String id, Integer delete);

    SpareInfo findSpareInfoById(String id);

    SpareInfo findSpareInfoByWarehouseNameAndContractDateAndDelete(String warehouseName, Date contractDate, Integer delete);

}